﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WMS.Interfactructure.Migrations
{
    /// <inheritdoc />
    public partial class _0702InandoutofStorage_ShelfManage12 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "CardManage",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    IDCard = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    FrontImg = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    ReverseImg = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    ReviewStatus = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    ReviewTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    Whetherblacklisted = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_CardManage", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Financialdetails",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UserCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Typeof = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    DepositMethod = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Maney = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    StartTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    EndTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    TrackingNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    WarehouseName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    TariffStandard = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    FeeDetailed = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    ItemDetails = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Financialdetails", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RechargeUsers",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UserCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Maney = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    DepositMethod = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RechargeUsers", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "CardManage");

            migrationBuilder.DropTable(
                name: "Financialdetails");

            migrationBuilder.DropTable(
                name: "RechargeUsers");
        }
    }
}
